package com.pro.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsClosure {

  private Integer id;
  private Integer userId;//用户id
  private Integer type;//类型，2前台，3后台
  private String reason;//封号原因
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.util.Date startDate;//封停时间
  private String startDatee;  //字符串时间的封停时间
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private java.util.Date endDate;//结束时间
  private String endDatee;  //字符串时间的结束时间
  private Integer days;//封停天数
  private String remarks;//备注
  private Integer status; //账号状态
  private Integer enabled;
  private Integer userCode;//用户学号

  public JsClosure() {
    super();
  }

  public JsClosure(Integer id, Integer userId, Integer type, String reason, Date startDate, String startDatee, Date endDate, String endDatee, Integer days, String remarks, Integer status, Integer enabled, Integer userCode) {
    this.id = id;
    this.userId = userId;
    this.type = type;
    this.reason = reason;
    this.startDate = startDate;
    this.startDatee = startDatee;
    this.endDate = endDate;
    this.endDatee = endDatee;
    this.days = days;
    this.remarks = remarks;
    this.status = status;
    this.enabled = enabled;
    this.userCode = userCode;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

  public Date getStartDate() {
    return startDate;
  }

  public void setStartDate(Date startDate) {
    this.startDate = startDate;
  }

  public String getStartDatee() {
    return startDatee;
  }

  public void setStartDatee(String startDatee) {
    this.startDatee = startDatee;
  }

  public Date getEndDate() {
    return endDate;
  }

  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }

  public String getEndDatee() {
    return endDatee;
  }

  public void setEndDatee(String endDatee) {
    this.endDatee = endDatee;
  }

  public Integer getDays() {
    return days;
  }

  public void setDays(Integer days) {
    this.days = days;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Integer getEnabled() {
    return enabled;
  }

  public void setEnabled(Integer enabled) {
    this.enabled = enabled;
  }

  public Integer getUserCode() {
    return userCode;
  }

  public void setUserCode(Integer userCode) {
    this.userCode = userCode;
  }

  @Override
  public String toString() {
    return "JsClosure{" +
            "id=" + id +
            ", userId=" + userId +
            ", type=" + type +
            ", reason='" + reason + '\'' +
            ", startDate=" + startDate +
            ", startDatee='" + startDatee + '\'' +
            ", endDate=" + endDate +
            ", endDatee='" + endDatee + '\'' +
            ", days=" + days +
            ", remarks='" + remarks + '\'' +
            ", status=" + status +
            ", enabled=" + enabled +
            ", userCode=" + userCode +
            '}';
  }
}
